package cn.learn.validator.groupby;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.Min;
import java.util.List;

/**
 * @author huangyezhan
 * @version 1.0
 * @date 2020年08月13日20:24
 */
@Setter
@Getter
@ToString
public class Department {
    @Min(value = 20,message = "{}")
    private Long id;
    private String deptName;

    @Valid
    private List<Employee> employees;
}
